package com.example.demo.information.service;

import com.example.demo.information.entity.Bjxx;
import com.example.demo.information.entity.School;

import java.util.List;
import java.util.Map;

/**
 * @author littlecar
 * @date 2020/3/11 14:17
 */
public interface SchoolService {
    List<School> findByName(String school_name);

    List<School> findAll();

    School findById(Long school_id);

    Map<String, School> getSchoolMap();

    Map<Long, Map<String, Bjxx>> getXXBjxxMap();

    void save(School school);

    List<School> findPageAll(int pages, Integer limit);

    List<School> findPageByNameLike(String school_name, int pages, Integer limit);

    List<School> findByNameLike(String school_name);

    void deleteById(Long school_id);

    int countAll();

    int countByNameLike(String school_name);

    Map<String,Object>  getXxxxBjxxTree();

    List<School> getCurrRoleSchoolList();

    Map<String, Object> getCurrPageSchoolList(String searchVal, Integer page, Integer limit);
}
